#!/usr/bin/python3

from random import randint

target = randint(0, 100)

data = input("Please enter the integer in the range 0~100: ")

count = 0

while(count <= 7):
    count = count+1
    if (int(data) > target):
        print("the interger is bigger than the target!")
        data = input("Please re-enter the integer: ")
        continue
      
    if (int(data) < target):
        print("the interger is smaller than the target!")
        data = input("Please re-enter the integer: ")
        count = count+1
        continue

    if (int(data) == target):
        print("Well Done!")
        exit(0)

print("You Lose")
print("the answer is %d\n" % target)








